﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DreamIn.Structures.LocalDB.DataAccessLayer;
using DreamIn.Structures.LocalDB.entities;

namespace DreamIn.Structures.LocalDB.BusinessLogic
{
    class PictureBL
    {
        public List<PictureE> GetPictures()
        {
            PictureDAL pictureDAL = new PictureDAL();
            return pictureDAL.GetPictures();
        }

        public List<PictureE> GetPicturesInAlbum(AlbumE album)
        {
            PictureDAL pictureDAL = new PictureDAL();
            return pictureDAL.GetPicturesInAlbum(album);
        }

        public void AddPicture(int idAlbum, string path, string name)
        {
            PictureDAL pictureDAL = new PictureDAL();
            pictureDAL.AddPicture(idAlbum, path, name);
        }

        public void UpdatePicture(PictureE picture)
        {
            PictureDAL pictureDAL = new PictureDAL();
            pictureDAL.UpdatePicture(picture);
        }

        public void DeletePicture(PictureE picture)
        {
            PictureDAL pictureDAL = new PictureDAL();
            pictureDAL.DeletePicture(picture);
        }
    }
}
